/*
 * @Author: Crism
 * @Date: 2018-08-08 14:42:00
 * @LastEditors: Crism
 * @LastEditTime: 2018-08-08 18:06:11
 * @Description: 
 * @Email: crism@qq.com
 */

const HttpUtil = require('../util/HttpUtil');
const poetic_m = require('../model/poetic_m');

module.exports.getPoetics = getPoetics;


async function getPoetics(ctx) {


    // let poetic_url = 'https://so.gushiwen.org/authors/authorvsw_bc94c92721b8A1.aspx';
    let poetic_url = 'authorv_bc94c92721b8.aspx';
    
    let poetics = await poetic_m.getPoetics(poetic_url);
    
    let resData = {};
    resData['totalPage'] = poetics;
    return ctx.body = resData;
}